//
//  HGPhotoWall.h
//  PhotoDemo
//
//  Created by Harry on 12-12-6.
//  Copyright (c) 2012年 Harry. All rights reserved.
//

#import <UIKit/UIKit.h>


typedef NS_ENUM(int, LayoutPhotosType)
{
    LayoutTenPhotos,  //放置10张图片，用于本村介绍
    LayoutTwelfPhotos, //放置12张图片，用于村务公开
};

@protocol HGPhotoWallDelegate <NSObject>

- (void)photoWallPhotoTaped:(NSUInteger)index;
- (void)photoWallMovePhotoFromIndex:(NSInteger)index toIndex:(NSInteger)newIndex;
- (void)photoWallAddAction;
- (void)photoWallAddFinish;
- (void)photoWallDeleteFinish;
- (void)photoWallPhotoBrowser:(NSUInteger)index; //添加的用于浏览大图的代理方法

@end

@interface HGPhotoWall : UIView

- (id)initWithFrame:(CGRect)frame andLayoutPhotoType:(LayoutPhotosType)type;
@property (strong, nonatomic) NSMutableArray *arrayPhotos;

@property (assign) id<HGPhotoWallDelegate> delegate;

- (void)setPhotos:(NSArray*)photos;
- (void)setEditModel:(BOOL)canEdit;
- (void)addPhoto:(NSString*)string;
- (void)deletePhotoByIndex:(NSUInteger)index;
- (void)addLocalPhoto:(UIImage *)image;

@end
